package com.example.springbootshiro.service.base;


import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @Author: lex
 * @Date: 2018/11/14
 */
public interface BaseService<T> extends IService<T> {

    /**
     * 逻辑删除
     * @param t
     * @return
     */
    int logicDeleteById(T t);

    T query(T t);

    List<T> listEntity(T t);

    IPage<T> pageEntity(Integer page,Integer pageSize, T t);

}